<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>奥鹏网考系统 - 清理未登录考生的试卷</title>
    <link rel="shortcut icon" href="favicon.ico" mce_href="/favicon.ico" type="image/x-icon" />

    <link href="//openexamcdn.open.com.cn/openexam/static/Content/bootstrap.min.css" rel="stylesheet" />
    <script src="//openexamcdn.open.com.cn/openexam/static/Scripts/jquery-1.12.4.min.js"></script>
</head>
<body>
<div class="container">
    <div class="page-header">
        <h1>已清理 <b id="clearExamineeExamPaperCount"></b> 名未开考考生的试卷</h1>
    </div>

    <table class="table table-striped table-bordered table-hover" id="clearExamineeExamPaperTable">
        <thead>
        <tr class="success">
            <th>序号</th>
            <th>主办方ID</th>
            <th>考点ID</th>
            <th>计划ID</th>
            <th>考生ID</th>
            <th>考生姓名</th>
            <th>准考证号</th>
            <th>考生性别</th>
            <th>证件类型</th>
            <th>证件号</th>
        </tr>
        </thead>
        <tbody>
        </tbody>
    </table>
</div>
</body>
<script type="text/javascript">
    window.onload = function () {
        clearExamineeExamPaper();
    };

    function clearExamineeExamPaper() {
       var $table = $("#clearExamineeExamPaperTable");

       $.ajax({
           url:"/Home/ClearExamineeExamPaper",
           type:"POST",
           dataType:"json",
           success:function (data) {
               var tbody = '';
                if(data.length > 0){
                    for (var i=0;i<data.length;i++){
                        tbody += '<tr>';
                        tbody += '<td>'+ (i+1) +'</td>';
                        tbody += '<td>'+ data[i].appID +'</td>';
                        tbody += '<td>'+ data[i].examSiteID +'</td>';
                        tbody += '<td>'+ data[i].examPlanInfoID +'</td>';
                        tbody += '<td>'+ data[i].examineeID +'</td>';
                        tbody += '<td>'+ data[i].examineeName +'</td>';
                        tbody += '<td>'+ data[i].examCardNo +'</td>';
                        switch (data[i].sex){
                            case 0:
                                tbody += '<td><span>未知</span></td>';
                                break;
                            case 1:
                                tbody += '<td><span>男</span></td>';
                                break;
                            case 2:
                                tbody += '<td><span>女</span></td>';
                                break;
                            default:
                                tbody += '<td><span>未说明</span></td>';
                                break;
                        }
                        switch (data[i].certificateType){
                            case 0:
                                break;
                            case 1:
                                tbody += '<td><span>身份证</span></td>';
                                break;
                            case 2:
                                tbody += '<td><span>军官证</span></td>';
                                break;
                            case 3:
                                tbody += '<td><span>护照</span></td>';
                                break;
                            case 4:
                                tbody += '<td><span>港、澳、台居民证件</span></td>';
                                break;
                            case 5:
                                tbody += '<td><span>国家汉办卡号</span></td>';
                                break;
                            case 6:
                                tbody += '<td><span>学号</span></td>';
                                break;
                            default:
                                tbody += '<td><span>未说明</span></td>';
                                break;
                        }
                        tbody += '<td>'+ data[i].certificateNo +'</td>';
                        tbody += '</tr>';
                    }
                }else{
                    tbody += '<tr> <td colspan="10" style="text-align: center;">未查询到数据 </td> </tr>';
                }
                $("#clearExamineeExamPaperCount").html(data.length);
                $table.find("tbody").append(tbody);
           }
       })
    }
</script>
</html>